package com.xiaoyilin.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
@RabbitListener(queues = "my.direct.queue")
public class DirectQueueConsumer {

    @RabbitHandler
    public void accept(String msg) {
        System.out.println("Direct Queue Consumer -->" + msg);
    }


}
